<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>编辑管理员</title>
    <link href='Public/hdjs/hdjs.css' rel='stylesheet' media='screen'>
    <link href='Public/Admin/css/mod.base.css' rel='stylesheet' media='screen'>
    <link href='Public/Admin/css/lhgcalendar.css' rel='stylesheet' media='screen'>
    <script type='text/javascript' src='Public/Admin/js/jquery-1.9.1.min.js'></script>
    <script type='text/javascript' src='Public/hdjs/hdjs.min.js'></script>
    <script type='text/javascript' src='Public/Admin/js/mod.base.js'></script>
    <script type='text/javascript' src='Public/Admin/js/mod.user.js'></script>
    <script type='text/javascript' src='Public/hdjs/lhgcalendar.min.js'></script>
</head>
<body>
    <form action="" method="post" class="hd-form" name="form" >

        <div class="hd-menu-list">
            <ul>
                <li >
                    <a href="<?php echo U('Admin/index')?>">管理员列表</a>
                </li>
                <li class="active">
                    <a href="javascript:;">编辑管理员</a>
                </li>
            </ul>
        </div>
        <div class="hd-title-header">编辑管理员</div>
        <div class="right_content">
            <table class="hd-table hd-table-form">
                <tbody>
                     <tr>
                        <th class="hd-w100">
                           管理员分组
                        </th>
                        <td>
                            <table>
                                <?php foreach ($data['role_id'] as $k=>$a){?>
                                <tr>
                                    <?php if($k==0){?>
                
                                    <th class='hand' onclick='add_group(this)'>[+]</th>
                                    <?php }else{?>
                                    <th class='hand' onclick='del_group(this)'>[-]</th>
                                    
               <?php }?>
                                <td>
                                    <select name="group_id[]">
                                    <?php foreach ($roleData as $v){?>
                                        <option value="<?php echo $v['id']?>" <?php if($v['id']==$a){?>
                 selected='selected'
               <?php }?>><?php echo $v['name']?></option>
                                     <?php }?>
                                    </select>
                                </td>
                                </tr>
                               <?php }?>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <th class="hd-w100">
                            用户名
                            <span class="star">*</span>
                        </th>
                        <td>
                            <input type="text" name="adminaccount" class="hd-w200" value="<?php echo $data['adminaccount']?>"></td>
                    </tr>

                    <tr>
                        <th class="hd-w100">
                            密码
                            <span class="star">*</span>
                        </th>
                        <td>
                            <input type="password" name="adminpwd" class="hd-w200"><span id="hd_password" class="hd-validate-notice" style="display: inline-block;">不填写则不修改</span>
                            </td>
                    </tr>
                    <tr>
                        <th class="hd-w100">
                            确认密码
                            <span class="star">*</span>
                        </th>
                        <td>
                            <input type="password" name="adminpwds" class="hd-w200"><span id="hd_passwords" class="hd-validate-notice" style="display: inline-block;">不填写则不修改</span>
                            </td>
                    </tr>
                    <tr>
                        <th class="hd-w100">
                            昵称
                            <span class="star">*</span>
                        </th>
                        <td>
                            <input type="text" name="adminname" class="hd-w200"  value="<?php echo $data['adminname']?>"></td>
                    </tr>
                    <tr>
                        <th class="hd-w100">
                            状态
                            <span class="star">*</span>
                        </th>
                        <td>
                        <label> <input type="radio" name="is_lock" value="1" <?php if($data['islock']==1){?>
                checked="checked"
               <?php }?>> 锁定</label>&nbsp;&nbsp;
                        <label> <input type="radio" name="is_lock" value="0" <?php if($data['islock']==0){?>
                checked="checked"
               <?php }?>> 正常</label>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>

        <input type="hidden" name="aid" value="<?php echo $_GET['aid']?>" />
        <input type="submit" value="编辑" class="hd-btn hd-btn-sm">
        <input type="button" value="返回" class="hd-btn hd-btn-sm" onclick="location.href='<?php echo U('Admin/index')?>'">
        </form>

</body>
</html>